package net.jast.sanitizer.impl;

import net.jast.sanitizer.Sanitizer;
import net.jast.sanitizer.impl.basic.StringSanitizer;

public class MsisdnSanitizer {

    final public static Sanitizer INSTANCE = getInstance();

    private static final String MSISDN_BR = "([1-9][0-9])([1-9][0-9]{1,2})((|9)[0-9]{4})([0-9]{4})";

    public static Sanitizer getInstance() {
        return new StringSanitizer(getPatterns());
    }

    public static String[] getPatterns() {
        return new String[] { MSISDN_BR };
    }
}
